/**
 * jims
 */
package com.jims.master.modules.doctor.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jims.master.common.persistence.DataEntity;

/**
 * Entity
 * @author 系统管理员
 * @version 2017-07-19
 */
public class PlaceInfectionRecord extends DataEntity<PlaceInfectionRecord> {
	
	private static final long serialVersionUID = 1L;
	private String infectionNo;		// 编号
	private String patientId;		// 病人Id
	private String clinicId;		// 门诊Id
	private String reportType;		// 初次/订正
	private String correctType;		// 订正报告类型
	private String genearchName;		// 患儿家长姓名
	private String realityAge;		// 实际年龄
	private String ageUnit;		// 年龄单位
	private String workUnit;		// 工作单位
	private String phone;		// 联系电话
	private String infectionIdentity;//病人职业
	private String patientArea;		// 病人地区
	private String caseType;		// 病例分类
	private String speedType;		//急性/慢性
	private Date illnessDate;		// 发病日期
	private Date diagnoseDate;		// 诊断日期
	private Date deathDate;		// 死亡日期
	private String aInfection;		// 甲类传染病
	private String bInfection;		// 乙类传染病
	private String cInfection;		// 丙类传染病
	private String otherInfection;		// 其他传染病
	private String updateBeforeName;		// 订正前病名
	private String returnReason;		// 退卡原因
	private String reportUnit;		// 报告单位
	private String unitPhone;		// 报告单位电话
	private String doctorName;		// 医生姓名
	private Date writeDate;		//填表日期
	private String orgId;		// 机构ID
	private String sex;
	private PatMasterIndex patMasterIndex;

	public Date getWriteDate() {
		return writeDate;
	}

	public void setWriteDate(Date writeDate) {
		this.writeDate = writeDate;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public PatMasterIndex getPatMasterIndex() {
		return patMasterIndex;
	}

	public void setPatMasterIndex(PatMasterIndex patMasterIndex) {
		this.patMasterIndex = patMasterIndex;
	}

	public PlaceInfectionRecord() {
		super();
	}

	public PlaceInfectionRecord(String id){
		super(id);
	}

	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}

	public String getInfectionNo() {
		return infectionNo;
	}

	public void setInfectionNo(String infectionNo) {
		this.infectionNo = infectionNo;
	}

	public String getaInfection() {
		return aInfection;
	}

	public void setaInfection(String aInfection) {
		this.aInfection = aInfection;
	}

	public String getSpeedType() {
		return speedType;
	}

	public void setSpeedType(String speedType) {
		this.speedType = speedType;
	}

	public String getbInfection() {
		return bInfection;
	}

	public void setbInfection(String bInfection) {
		this.bInfection = bInfection;
	}

	public String getcInfection() {
		return cInfection;
	}

	public void setcInfection(String cInfection) {
		this.cInfection = cInfection;
	}


	@Length(min=1, max=64, message="病人Id长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	public String getReportType() {
		return reportType;
	}

	public void setReportType(String reportType) {
		this.reportType = reportType;
	}
	
	public String getCorrectType() {
		return correctType;
	}

	public void setCorrectType(String correctType) {
		this.correctType = correctType;
	}
	
	@Length(min=0, max=200, message="患儿家长姓名长度必须介于 0 和 200 之间")
	public String getGenearchName() {
		return genearchName;
	}

	public void setGenearchName(String genearchName) {
		this.genearchName = genearchName;
	}
	
	@Length(min=0, max=11, message="实际年龄长度必须介于 0 和 11 之间")
	public String getRealityAge() {
		return realityAge;
	}

	public void setRealityAge(String realityAge) {
		this.realityAge = realityAge;
	}

	public String getInfectionIdentity() {
		return infectionIdentity;
	}

	public void setInfectionIdentity(String infectionIdentity) {
		this.infectionIdentity = infectionIdentity;
	}

	public String getAgeUnit() {
		return ageUnit;
	}

	public void setAgeUnit(String ageUnit) {
		this.ageUnit = ageUnit;
	}
	
	@Length(min=0, max=200, message="工作单位长度必须介于 0 和 200 之间")
	public String getWorkUnit() {
		return workUnit;
	}

	public void setWorkUnit(String workUnit) {
		this.workUnit = workUnit;
	}
	
	@Length(min=0, max=20, message="联系电话长度必须介于 0 和 20 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=200, message="病人地区长度必须介于 0 和 200 之间")
	public String getPatientArea() {
		return patientArea;
	}

	public void setPatientArea(String patientArea) {
		this.patientArea = patientArea;
	}
	
	public String getCaseType() {
		return caseType;
	}

	public void setCaseType(String caseType) {
		this.caseType = caseType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getIllnessDate() {
		return illnessDate;
	}

	public void setIllnessDate(Date illnessDate) {
		this.illnessDate = illnessDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDiagnoseDate() {
		return diagnoseDate;
	}

	public void setDiagnoseDate(Date diagnoseDate) {
		this.diagnoseDate = diagnoseDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDeathDate() {
		return deathDate;
	}

	public void setDeathDate(Date deathDate) {
		this.deathDate = deathDate;
	}
	

	@Length(min=0, max=200, message="其他传染病长度必须介于 0 和 200 之间")
	public String getOtherInfection() {
		return otherInfection;
	}

	public void setOtherInfection(String otherInfection) {
		this.otherInfection = otherInfection;
	}
	
	@Length(min=0, max=200, message="订正前病名长度必须介于 0 和 200 之间")
	public String getUpdateBeforeName() {
		return updateBeforeName;
	}

	public void setUpdateBeforeName(String updateBeforeName) {
		this.updateBeforeName = updateBeforeName;
	}
	
	@Length(min=0, max=200, message="退卡原因长度必须介于 0 和 200 之间")
	public String getReturnReason() {
		return returnReason;
	}

	public void setReturnReason(String returnReason) {
		this.returnReason = returnReason;
	}
	
	@Length(min=0, max=200, message="报告单位长度必须介于 0 和 200 之间")
	public String getReportUnit() {
		return reportUnit;
	}

	public void setReportUnit(String reportUnit) {
		this.reportUnit = reportUnit;
	}
	
	@Length(min=0, max=200, message="报告单位电话长度必须介于 0 和 200 之间")
	public String getUnitPhone() {
		return unitPhone;
	}

	public void setUnitPhone(String unitPhone) {
		this.unitPhone = unitPhone;
	}
	
	@Length(min=0, max=200, message="医生姓名长度必须介于 0 和 200 之间")
	public String getDoctorName() {
		return doctorName;
	}

	public void setDoctorName(String doctorName) {
		this.doctorName = doctorName;
	}
	
	@Length(min=1, max=64, message="机构ID长度必须介于 1 和 64 之间")
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
}